package com.yurun.commonapi.mapper;

import com.yurun.commonapi.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
@Mapper
@Repository
public interface UmsPermissionMapper {
    /**
     * 根据权限id获取权限
     */
    List<Permission> getPermissionList(int adminId);

    /**
     * 根据角色id获取权限id
     */
    List<Integer>  getPermissionByRole(int roleId);

    String getMyStudent(BigInteger employeeId);

    String getMyClassroom(BigInteger employeeId);

    String getClassroomStudent(BigInteger classroomId);

    String getRoleName(BigInteger employeeId);
}
